package com.ddwl.gate.job;

import com.ddwl.gate.service.MobileRechargeAccountService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author hemiaojun
 * @Date 2020/9/27 14:08
 */
@Component
public class QueryMobileAccountBalanceJob {

    @Resource
    private MobileRechargeAccountService mobileRechargeAccountService;

    /**
     * 公司账号余额查询
     * @param param
     * @return
     */
    @XxlJob("queryMobileRechargeAccountBalance")
    public ReturnT<String> queryBalance(String param) throws Exception{
        XxlJobLogger.log("开始执行话费充值公司账号余额任务");
        mobileRechargeAccountService.queryBalance();
        return ReturnT.SUCCESS;
    }

}
